﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class Add: Calculate
    {
        public int Sum { get; set; }

        public void Jia(int A,int B) 
        {
            this.A = A;
            this.B = B;

         
        }
        public override void DisplayResult(int A, int B) 
        {
            Sum = A + B;
            Console.WriteLine(Sum);
        }
    }
}
